-
Notifications
You must be signed in to change notification settings - Fork 91
修复Android15开始标题栏跑到手机的状态栏下面去导致无法点击的问题 #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- 新增 FilePickerTheme 基础主题,支持 Android35 的 edgeToEdge 设置 - 将 FilePickerThemeRail、FilePickerThemeReply、FilePickerThemeCrane 和 FilePickerThemeShrine 主题统一继承自 FilePickerTheme- 保留各子主题的原有颜色配置不变- 优化主题结构,提高代码复用性和维护性
- 将 compileSdk 和 targetSdk 版本升级至 34/35 - 更新 Kotlin 版本从 1.6.0 到 1.8.22 - 升级 Gradle 插件版本至 8.1.4 - 更新 AndroidX 库至最新版本 - 升级 Picasso 和 Glide 图片加载库版本 - 移除已弃用的 android-maven-gradle-plugin- 更新 Gradle Wrapper 至 8.5 版本 - 调整最小堆内存设置并更新代理配置 - 为样式资源添加 tools 命名空间声明 - 移除部分冗余的主题样式定义 - 更新 Picasso API 调用方式适配新版本 - 移除库模块中的 androidTest依赖以避免冲突- 更新 gradlew 脚本以兼容新版本 Gradle -为模块添加 namespace 配置项
- 从 gradle.properties 中删除 HTTPS 代理设置
- 将 minSdkVersion 从 19 提升至 21 - 将 compileSdk 和 targetSdkVersion 提升至 35 - 将 Java 兼容版本从 1.8 升级至 17- 升级 Android Gradle 插件版本从 8.1.4 到 8.13.0 - 更新 Gradle Wrapper 版本从8.5 到 8.13
- 删除自定义文件过滤器 fileFilter 的实现- 移除 onCreate 方法中的所有按钮点击事件逻辑 - 清理权限请求相关代码- 移除随机主题获取方法 getRandomTheme - 删除自定义文件类型及检测器示例代码 - 移除 SampleFragment 内部类及相关逻辑 - 清理 onActivityResult 回调处理逻辑 - 移除伴生对象中不必要的常量定义
感谢贡献,我会在家今天晚些时候 review 代码_(:3」∠)_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
主题调整没问题,但是 kotlin 版本、依赖库版本尽量不要更新(如果必须,则应该更新到最低那个版本)。
|
||
buildscript { | ||
ext.kotlin_version="1.6.0" | ||
ext.kotlin_version="1.8.22" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kotlin 版本不建议升级,不然如果 APP kotlin 低于 1.8.22,那么就会无法引入这个库了。
minSdkVersion 16 | ||
compileSdk 33 | ||
targetSdkVersion 33 | ||
minSdkVersion 21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minSdkVersion
也尽量不要调整。
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
sourceCompatibility JavaVersion.VERSION_17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同理,这里也不需要调整~
compileOnly 'com.squareup.picasso:picasso:2.5.2' | ||
compileOnly ("com.github.bumptech.glide:glide:4.9.0") { | ||
compileOnly 'com.squareup.picasso:picasso:2.71828' | ||
compileOnly ('com.github.bumptech.glide:glide:5.0.5') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glide 尽量不要调整太高。
implementation 'androidx.appcompat:appcompat:1.3.0' | ||
implementation 'androidx.recyclerview:recyclerview:1.2.1' | ||
implementation 'androidx.constraintlayout:constraintlayout:2.1.2' | ||
implementation 'androidx.appcompat:appcompat:1.7.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同理。作为一个库,不应该依赖太高版本的第三方库。不然会影响宿主 APP 的编译。
修复Android15开始标题栏跑到手机的状态栏下面去导致无法点击的问题